<?php
$time=date('YmdHis');
//$key=md5($time);
//602206$key = "032e71330511ad6aa3af0934662c9c35";
$key='ff2b0dac9b02b7ad1da302382ceef6c4';
//$merCode=602206;
$merCode=602207;
$data = "test/mercode";
$floder=urlencode($data);
 echo $floder;
$sign=md5("merCode=".$merCode."&floder=".$data."&time=".$time."&0".$key);
$time."+key:".$key."+mercode:".$merCode."+sign:".$sign;
?>
<html>
<head>
    <title>Upload Form</title>
</head>
<body>

<?php echo $error;?>

<!--asss
<form action="http://mediaty.tv189.com/fdoupload&<?php echo 'merCode='.$merCode."&".'time='.$time."&".'sign='.$sign; ?>" method="post" enctype="multipart/form-data">
-->


<form action="http://192.168.23.149:8080/?c=content&m=do_upload&<?php echo 'merCode='.$merCode."&".'time='.$time."&".'sign='.$sign."&floder=".$floder; ?>" method="post" enctype="multipart/form-data">
<!-- 
-->

<input type="file" name="file" size="20" >
<br /><br />

<input type="submit" value="upload" id="btnSendCode" />

</form>

</body>
<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>

<script type="text/javascript">
	var merCode = $('#merCode').val();
		 $(document).ready(function () {
               
            });
	    $('#btnSendCode').click(function(){
       
         

     });
	   function ajaxSubmit(){
	   	 var merCode = $('#merCode').val();
         var time = $('#time').val();
         var sign = $('#sign').val();
  
       	$.ajax({
			   type: "get",
			   url: "http://192.168.23.149:8080/?c=content&m=do_upload&",
			   dataType:"json",
			   data: {name:"xiaoming"},
			   success: function(msg){
			     alert( "Data Saved: " + msg );
			   }
			});
	   }

</script>	

</html>
